package com.snda.relation.service.activities.biz;

import com.snda.relation.activities.bean.FeedTemplate;
import com.snda.relation.service.opensocial.GetResponse;
import com.snda.relation.service.opensocial.UpdateResponse;
import com.snda.commons.servicegate.annotations.Endpoint;
import com.snda.commons.servicegate.annotations.Param;
import com.snda.commons.servicegate.annotations.Service;
import com.snda.commons.servicegate.validation.Number;
import com.snda.commons.servicegate.validation.Text;

/**
 * Filename: ActivityManagere.java Description: Copyright: Copyright (c)
 * 2010-2020 Company: www.sdo.com
 * 
 * @author: huangcheng
 * @version: 1.0 Create at: 2010-3-16 2010 Modification Historty: Date Author
 *           Version Description
 *           ------------------------------------------------------ 2010-3-16 1.0
 *           create 1.0 version
 */
@Service("FeedTemplateService")
public interface IFeedTemplateService {

	/**
	 * ע��ģ�壬����ģ�����
	 * 
	 * @param appId
	 * @param feedTitle
	 * @param feedContent
	 * @return templateId
	 * @throws Exception
	 */
	@Endpoint
	public GetResponse<FeedTemplate> addTemplate(
			@Param("appId") long appId,
			@Param("titleTemplate") String titleTemplate,
			@Param("bodyTemplate") String bodyTemplate	
			) throws Exception;

	/**
	 * ���ģ��ID����ģ�����
	 * 
	 * @param templateId
	 * @return
	 * @throws Exception
	 */
	@Endpoint
	public GetResponse<FeedTemplate> getTemplateByTemplateId(
			@Param("templateId") long templateId)
			throws Exception;
	/**
	 * ���Ӧ��appIdȡ����ģ��
	 * 
	 * @param appId
	 * @return
	 * @throws Exception
	 */	
	@Endpoint
	public GetResponse<FeedTemplate> getTemplate(
			@Param("appId") long appId)
			throws Exception;
	/**
     * ���templateIdɾ��ģ��
     * @param templateId
     * @throws Exception
     */
	@Endpoint
	public UpdateResponse deleteTemplateByTemplateId(
			@Param("templateId")long templateId)
	throws Exception;
}